home *** CD-ROM | disk | FTP | other *** search
/ Freelog 22 / freelog 22.iso / Prog / Djgpp / GPC2952B.ZIP / doc / gpc / docdemos / schemawithdemo.pas < prev    next >
Encoding:
Pascal/Delphi Source File  |  2001-02-09  |  228 b   |  11 lines

  1. program SchemaWithDemo;
  2. type
  3.   RealArray (n : Integer) = array [1 .. n] of Real;
  4. var
  5.   MyArray : RealArray (42);
  6. begin
  7.   WriteLn (MyArray.n);  { writes 42 }
  8.   with MyArray do
  9.     WriteLn (n);        { writes 42 }
  10. end.
  11.